<span id="${uuid}"></span>
<h2>我的个人信息</h2>
<div class="box_tc_s mt10">
    <form class="form form-horizontal" method="post" role="form"
          action="${pageContext.request.contextPath}/app/api/sysMember/changeUserInfo"
          name="form-user-edit" data-id="form-user-update-info">
        <table border="1" cellpadding="0" cellspacing="0" class="hydra-table">
            <tr class="hydra-tr-bg">
                <td class="hydra-left">我的用户名:</td>
                <td class="hydra-right">
                    <input type="text" data-id="user_number" name="userNumber"
                           class="easyui-validatebox hydra-input-width"
                           data-options="required:true,validType:['length[0,20]']"
                           placeholder="我的姓名.." value="${loginUser.userNumber}"/></td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left">我的姓名:</td>
                <td class="hydra-right">
                    <%--<input type="hidden" name="userNumber" value="${loginUser.userNumber}">--%>
                    <input type="text" data-id="user_name" name="userName"
                           class="easyui-validatebox hydra-input-width"
                           data-options="required:true,validType:['length[0,20]']"
                           placeholder="我的姓名.." value="${loginUser.userName}"/></td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left">我的头像：</td>
                <td class="hydra-right" data-id="userHeadTd">
                    <input name="userHead" data-id="userHeadList" class="hydra-input-width" value="${loginUser.userHead}"/>
                    <img data-id="userHead" src="${pageContext.request.contextPath}/print/${loginUser.userHead}"
                         style="width: 36px;height: 36px;" >
                    <%--<input type="text" data-id="uploadCover" name="userHead" value="${loginUser.userHead}" /></td>--%>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left">我的邮箱:</td>
                <td class="hydra-right"><input type="text" data-id="user_email"
                                               class="easyui-validatebox hydra-input-width"
                                               data-options="validType:['email','length[0,40]']" name="email"
                                               placeholder="我的邮箱.." value="${loginUser.email}"/></td>
            </tr>
            <tr>
                <td class="hydra-left">我的手机:</td>
                <td class="hydra-right"><input type="text" data-id="user_mobile"
                                               class="easyui-validatebox hydra-input-width"
                                               data-options="validType:['mobile','length[0,20]']" name="mobile"
                                               placeholder="我的手机.." value="${loginUser.mobile}"/></td>
            </tr>
            <shiro:hasPermission name="self:password:update">
                <tr>
                    <td class="hydra-left">我的密码:</td>
                    <td class="hydra-right"><input type="password"
                                                   id="user_password" autocomplete="off" name="userPassword"
                                                   class="easyui-validatebox hydra-input-width"
                                                   data-options="required:true,validType:['normalChar','length[0,40]']"
                                                   placeholder="我的密码.." value="${loginUser.userPassword}"/></td>
                </tr>
                <tr class="hydra-tr-bg" data-id="user-add-sysmember_update_password1">
                    <td class="hydra-left">确认我的密码:</td>
                    <td class="hydra-right"><input type="password"
                                                   data-id="user_password1" autocomplete="off" name="userPassword1"
                                                   class="easyui-validatebox hydra-input-width"
                                                   data-options="required:true,validType:'equals[\'#user_password\']'"
                                                   placeholder="我的密码.." value="${loginUser.userPassword }"/></td>
                </tr>
            </shiro:hasPermission>
            <shiro:hasPermission name="self:ipAddress:update">
                <tr>
                    <td class="hydra-left">IP地址：</td>
                    <td class="hydra-right"><input type="text" data-id="ipAddress" value="${loginUser.ipAddress}"
                                                   name="ipAddress" class="hydra-input-width"/></td>
                </tr>
            </shiro:hasPermission>
            <shiro:lacksPermission name="self:password:update">
                <input type="hidden" name="userPassword" value="${loginUser.userPassword}">
            </shiro:lacksPermission>
            <shiro:lacksPermission name="self:ipAddress:update">
                <input type="hidden" name="ipAddress" value="${loginUser.ipAddress}">
            </shiro:lacksPermission>
        </table>
    </form>
    <div class="mt10">
        <a data-id="save" href="javascript:void(0)" iconCls="fa fa-save fa-lg">保存用户信息</a>
        <a data-id="cancel" href="javascript:void(0)" iconCls="fa fa-remove fa-lg">取消</a>
    </div>
</div>
